package com.newer.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

@ApiModel(value="com-newer-domain-Inventory")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_inventory")
public class Inventory {
    @TableId(value = "inventoryId", type = IdType.AUTO)
    @ApiModelProperty(value="")
    private Integer inventoryid;

    @TableField(value = "materialId")
    @ApiModelProperty(value="")
    private Integer materialid;

    @TableField(value = "count")
    @ApiModelProperty(value="")
    private Integer count;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "productionDate")
    @ApiModelProperty(value="")
    private Date productiondate;

    @TableField(value = "expiryNum")
    @ApiModelProperty(value="")
    private Integer expirynum;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "storageDate")
    @ApiModelProperty(value="")
    private Date storagedate;


    //产品表
    private Material material;

    //产品类型
    private  MaterialCategory materialCategory;
}